.class public Ladapter/NatureAdapter;
.super Landroid/widget/BaseAdapter;
.source "NatureAdapter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Ladapter/NatureAdapter$ViewHolder;
    }
.end annotation


# instance fields
.field private context:Landroid/content/Context;

.field mData:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;)V
    .locals 0
    .param p1, "context"    # Landroid/content/Context;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 31
    .local p2, "mData":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 32
    iput-object p1, p0, Ladapter/NatureAdapter;->context:Landroid/content/Context;

    .line 33
    iput-object p2, p0, Ladapter/NatureAdapter;->mData:Ljava/util/List;

    .line 34
    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    .prologue
    .line 38
    iget-object v0, p0, Ladapter/NatureAdapter;->mData:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .param p1, "arg0"    # I

    .prologue
    .line 44
    const/4 v0, 0x0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2
    .param p1, "arg0"    # I

    .prologue
    .line 50
    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 4
    .param p1, "position"    # I
    .param p2, "convertView"    # Landroid/view/View;
    .param p3, "parent"    # Landroid/view/ViewGroup;

    .prologue
    .line 55
    const/4 v0, 0x0

    .line 56
    .local v0, "holder":Ladapter/NatureAdapter$ViewHolder;
    if-nez p2, :cond_0

    .line 58
    new-instance v0, Ladapter/NatureAdapter$ViewHolder;

    .end local v0    # "holder":Ladapter/NatureAdapter$ViewHolder;
    invoke-direct {v0, p0}, Ladapter/NatureAdapter$ViewHolder;-><init>(Ladapter/NatureAdapter;)V

    .line 59
    .restart local v0    # "holder":Ladapter/NatureAdapter$ViewHolder;
    iget-object v1, p0, Ladapter/NatureAdapter;->context:Landroid/content/Context;

    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    const v2, 0x7f030042

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 60
    const v1, 0x7f0701cc

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, v0, Ladapter/NatureAdapter$ViewHolder;->title:Landroid/widget/TextView;

    .line 61
    const v1, 0x7f0701cd

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, v0, Ladapter/NatureAdapter$ViewHolder;->content:Landroid/widget/TextView;

    .line 62
    const v1, 0x7f0701d0

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, v0, Ladapter/NatureAdapter$ViewHolder;->iv:Landroid/widget/ImageView;

    .line 63
    invoke-virtual {p2, v0}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 68
    :goto_0
    iget-object v2, v0, Ladapter/NatureAdapter$ViewHolder;->title:Landroid/widget/TextView;

    iget-object v1, p0, Ladapter/NatureAdapter;->mData:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 70
    iget-object v1, v0, Ladapter/NatureAdapter$ViewHolder;->iv:Landroid/widget/ImageView;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    .line 71
    iget-object v1, v0, Ladapter/NatureAdapter$ViewHolder;->iv:Landroid/widget/ImageView;

    new-instance v2, Ladapter/NatureAdapter$1;

    invoke-direct {v2, p0}, Ladapter/NatureAdapter$1;-><init>(Ladapter/NatureAdapter;)V

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 82
    return-object p2

    .line 65
    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    .end local v0    # "holder":Ladapter/NatureAdapter$ViewHolder;
    check-cast v0, Ladapter/NatureAdapter$ViewHolder;

    .restart local v0    # "holder":Ladapter/NatureAdapter$ViewHolder;
    goto :goto_0
.end method
